
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:frametrim/utility/sq_color.dart';
import 'package:oktoast/oktoast.dart';

/*使用需要在MaterialApp外层包裹OKToast*/
class ToastUtils {
  static show(String msg) {
    showToast(
      msg,
      duration: Duration(seconds: 2),
      position: ToastPosition.bottom,
      backgroundColor: SQColor.color_131313.withOpacity(0.9),
      radius: 5.0,
      textStyle: TextStyle(fontSize: 15.0),
      textPadding: EdgeInsets.fromLTRB(15, 10, 15, 10),
    );
  }
}
